using BLToolkit.DataAccess;
using BLToolkit.Mapping;
using System;
using System.Collections.Generic;

namespace SettlersAuto.Data.Entities
{    
    public partial class TradeSlot
    {
        [PrimaryKey]
        public int TradeSlotId { get; set; }
        // public int ExternalId { get; set; }
        public int SenderId { get; set; }
        public string SenderName { get; set; }
        public int LotsCount { get; set; }
        public string OfferProductName { get; set; }
        public int OfferQuantity { get; set; }
        public string DemandProductName { get; set; }
        public int DemandQuantity { get; set; }
        public int TradeSessionId { get; set; }

        [Association(ThisKey = "TradeSessionId", OtherKey = "TradeSessionId", CanBeNull=false)]
        public TradeSession TradeSession { get; set; }
    }
}
